package com.yuyou.activity.group.service.service;

import java.util.List;

import com.yuyou.activity.group.service.entity.ActivityGroupbuyOrderDetail;
import com.yuyou.activity.util.bean.ResBoolSimpleInfo;

public interface IActivityGroupbuyOrderDetailService {
    int deleteByPrimaryKey(Long activityGroupbuyOrderDetailId);

    int insert(ActivityGroupbuyOrderDetail record);

    ActivityGroupbuyOrderDetail selectByPrimaryKey(Long activityGroupbuyOrderDetailId);

    int updateByPrimaryKeySelective(ActivityGroupbuyOrderDetail record);

    List<Long> findSourceIdByOrderId(Long orderId);
    
    /**
     * 找出openid+手机号支付成功的商品
     * @param openId
     * @return
     */
    List<ActivityGroupbuyOrderDetail> findSuccByOpenId7Phone(String projectCode,String openId,String phone);

    /**
     * 创建
     * @param record
     * @return
     */
	ResBoolSimpleInfo<String> add(ActivityGroupbuyOrderDetail record);
}